.full-page {
  height: 100vh;
  padding: 10px;
}

.full-page-main {
  background-color: #fff;
  padding: 0 10px;
}

.form-page {
  background-color: #fff;

  .form-builder {
    max-width: 665px;
    padding: 10px 10px;
  }
}

.form-page-header {
  border-bottom: 1px solid #f4f7f5;
  padding: 12px 10px;

  .iconfont {
    font-size: 12px;
  }

  .btn-back {
    padding: 7px 15px;
    color: #333;
  }

  .cut-off-line {
    line-height: 34px;
    margin-right: 12px;
  }
}

.form-page-tool {
  display: flex;
  flex-flow: row nowrap;
}

.is-required {
  &:before {
    content: "*";
    color: #f56c6c;
    margin-right: 4px;
    vertical-align: middle;
  }
}

// 保留文本中的空格使用pre标签样式
.pre-text {
  margin: 0;
  font-size: inherit;
  font-family: inherit;
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
}

// 三角形
.icon-down-fill {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: middle;
  border-top: 4px dashed;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

// --------  pc -------------
.page {
  // background-color: #F2F2F2;
  min-width: 1100px;
  padding: 10px;
  overflow: auto;
}

.page-panel {
  background-color: #fff;
  border-radius: 4px 4px 0 0;
  margin-bottom: 10px;
}

.page-panel-head {
  padding: 10px;
  border-bottom: 1px solid #f4f4f4;

  h5 {
    line-height: 20px;
    font-size: 14px;
    margin: 0;
  }
}

.page-panel-body {
  padding: 16px;
  .el-dropdown-link.el-dropdown-btn {
    background-color: transparent !important;
    &:hover {
      @include fontColor();
      background-color: transparent !important;
    }
  }
}

.page-main {
  display: flex;
  flex-flow: row nowrap;
}

.page-main-detail {
  flex: 5;
}

.page-main-addition {
  flex: 7;
  margin-left: 10px;
}

.page-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  line-height: 1.4;
}

.page-row-left {
  width: 110px;

  font-size: 14px;
  line-height: 24px;
  padding: 5px 12px 5px 0;
  text-align: right;
  font-weight: 500;
}

.page-row-right {
  flex: 1;
  font-size: 14px;
  line-height: 24px;
  padding: 5px 0 5px 12px;
  word-break: break-all;

  p {
    color: #333;
    word-break: break-all;
    margin: 0;
    line-height: 24px;
  }

  a {
    text-decoration: none;
  }
}

.base-pagination {
  border-top: 1px solid #f0f0f0;
  padding: 8px 5px;
  text-align: right;
}

.search-form-nano {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;

  & > * {
    margin-left: 5px;
  }

  & > .el-input {
    width: 40%;
  }
}

.dropdown-item {
  display: block;
  width: 100%;
  min-width: 110px;
  margin: 0 -20px;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dadada;
  color: #606266;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  font-weight: 500;
  padding: 8px 15px;
  font-size: 14px;
  @include border-radius-normal;

  transition: all ease 0.1s;
  cursor: pointer;
}

.btn-text {
  color: #606266;
  background-color: transparent;
  border-color: transparent;

  &:hover {
    background-color: transparent;
    border-color: transparent;
    @include fontColor();
  }
}

.common-form {
  .el-form-item {
    margin-bottom: 0;

    &.is-error {
      margin-bottom: 22px;
    }
  }
}

.common-tooltip {
  max-width: 360px;
}

.common-advance-popper {
  max-width: calc(50% - 140px);

  .el-select-dropdown__item {
    height: auto;
  }
}

.base-search-group-container {
  margin-bottom: 10px;

  .advanced-search-function,
  .base-search {
    background: #fff;
    @include border-radius-normal;
  }

  .base-search {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    padding: 16px;

    .customer-list-base-search-group {
      display: flex;
      // width: 440px;
      justify-content: space-between;
      align-items: center;

      .el-input {
        width: 300px;
        input {
          height: 34px;
          line-height: 34px;
          width: 300px;
        }
      }

      a {
        line-height: 33px;
      }
    }

    .advanced-search-visible-btn {
      font-size: 14px;
      // font-weight: lighter;
      line-height: 32px;
      @include fontColor();
      @include borderColor();
      background: #fff;
      padding: 0 13px;
      white-space: nowrap;
      &:hover {
        cursor: pointer;
      }
    }
  }

  .advanced-search-form {
    overflow: auto;
    padding: 10px 0 63px 0;
    height: calc(100% - 51px);

    .form-item-container {
    }

    .two-columns {
      display: flex;
      flex-wrap: wrap;
      .el-form-item {
        width: 50%;
      }
    }

    .el-form-item {
      .el-form-item__content,
      .el-select,
      .base-dist-picker,
      .el-cascader,
      .el-date-editor {
        width: 290px;
      }
    }

    .advanced-search-btn-group {
      display: flex;
      justify-content: flex-end;
      width: 100%;
      position: absolute;
      bottom: 0px;
      background: #fff;
      padding: 15px 20px;

      .base-button {
        margin: 0 10px;
      }
    }
  }

  .advanced-search-function {
    margin-top: 10px;
    padding-bottom: 10px;

    h4 {
      border-bottom: 1px solid #f4f4f4;
      padding: 10px;
    }

    .el-row {
      padding: 5px 0;
    }
    .input-label {
      text-align: right;
      line-height: 32px;
      padding-right: 0;
    }
  }
}

.operation-bar-container {
  padding: 16px 16px 12px !important;
}

.base-operation-bar-container {
  background: #fff;
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  // border-bottom: 1px solid #f2f2f2;

  .top-btn-group .base-button {
    margin-right: 5px;
  }

  .action-button-group {
    .base-button {
      margin-left: 5px;
    }
  }

  .el-dropdown-btn {
    padding: 0 15px;
    line-height: 31px;
    display: inline-block;
    outline: none;
    margin-left: 5px;
    background: transparent !important;
    .iconfont {
      margin-left: 5px;
      font-size: 12px;
    }

    &:hover {
      cursor: pointer;
      @include fontColor();
      background: transparent !important;
    }
  }
}

// 列表选中数量bar组件壳样式
.base-selection-wrapper {
  background: #fff;
  padding: 0 16px;
  overflow: hidden;
}

// task-列表壳样式
.content-container {
  margin-top: 0 !important;
  border-radius: 0 0 4px 4px !important;
}

// task-操作按钮壳样式
.operation-container {
  border-radius: 4px 4px 0 0 !important;
  padding-bottom: 0 !important;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 0px 10px 10px 10px;
  background: #fff;
  border-radius: 0 0 4px 4px;
  height: 56px;
  padding: 12px !important;

  .list-info {
    font-size: 13px;
    line-height: 32px;
    margin: 0;
    color: #767e89;

    .iconfont {
      position: relative;
      top: 1px;
    }
  }

  .el-pagination__jump {
    margin-left: 0;
  }
}

.base-table-selected-count {
  @include fontColor();
  padding: 0 3px;
  width: 15px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
}

.table-container {
  padding: 0px 16px;
  background: #fff;
  & > .el-table {
    border-top: none;
    border-left: none;
  }
}

.el-table {
  &:before {
    content: none;
  }

  .cell {
    &.el-tooltip {
      min-width: auto !important;
    }
  }

  .base-table-header th {
    background: #f5f5f5;
    color: $text-color-primary;
    font-weight: normal;
  }

  th {
    color: #595959;
    font-size: 14px;
  }
  td {
    color: #666;
    font-size: 13px;
  }

  .view-detail-btn {
    cursor: pointer;
    @include fontColorImportant();
  }
  
  .view-detail-btn-disabled {
    cursor: default;
    text-decoration: none;
    color: #666 !important;
  }
  
  .view-detail-btn-disabled:link { 
    text-decoration: none; 
  } 
  .view-detail-btn-disabled:visited { 
    text-decoration: none; 
  }
  .view-detail-btn-disabled:hover { 
    text-decoration: none; 
  } 
  .view-detail-btn-disabled:active { 
    text-decoration: none; 
  }
  
  .select-column .el-checkbox {
    position: relative;
    top: 3px;
  }

  .base-table-header-v3 th {
    background: $bg-color-l2;
    color: $text-color-primary;
    font-weight: normal;
  }

  .base-table-row-v3 td {
    color: $text-color-regular;
    font-size: $font-size-small;
  }

  .base-table-row-v3:hover > td {
    background-color: #fafafa;
  }
}

.el-radio-button {
  &:last-child {
    .el-radio-button__inner {
      border-radius: 0 4px 4px 0;
    }
  }
  &:first-child {
    .el-radio-button__inner {
      border-radius: 4px 0 0 4px;
    }
  }
}

.el-radio-button__inner {
  padding-top: 8px;
  padding-bottom: 8px;
  color: $text-color-regular;
  font-weight: normal;
}

.el-input__inner {
  height: 32px;
  line-height: 32px;
  @include border-radius-normal;
}

.el-textarea__inner {
  @include border-radius-normal;
}

.form-row {
  display: flex;
  flex-flow: row nowrap;
  margin-bottom: 10px;

  &:last-child {
    margin-bottom: 0;
  }
}

.page {
  .form-item {
    flex: 1;
    display: flex;
    flex-flow: row nowrap;

    label {
      width: 120px;
      text-align: right;
      margin: 0;
      line-height: 22px;
      padding: 5px 10px;
      font-weight: 500;
    }

    .form-item-content {
      flex: 1;
    }
  }
}

.el-radio-group {
  label {
    margin-left: 0;
    .el-radio-button__inner {
      font-size: $font-size-base;
    }
  }
}

// 一行两列
.form-row-two-columns {
  display: flex;
  flex-wrap: wrap;

  .form-view-row {
    width: 50%;

    &:nth-child(odd) {
      padding-right: 12px;
    }

    &:nth-child(even) {
      padding-left: 12px;
    }
  }
}
// 轮播点
.el-carousel__button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50%;
}

// 动态信息备注
.customer-quick-comment {
  width: calc(50% - 22px);
  margin: 0 auto;
  position: fixed;
  padding: 0px;
  z-index: 10;
  background-color: #fff;
  bottom: 0px;
  // padding: 14px;
  padding: 14px 0 14px 14px;
  .base-comment {
    border: none;
  }
}

.el-table .view-detail-btn {
  color: $color-primary;
}


.el-button + .el-button {
  margin-left: 12px;
}

.el-date-editor {
  // padding: 3px 5px;

  .el-range-separator {
    // line-height: 24px ;
    // box-sizing: content-box;
    padding: 0 3px;
  }

  // .el-input__icon {
  //   line-height: 24px;
  // }
}

.top-btn-group {
  font-size: 0;
  & > *:not(:first-child) {
    margin-left: 12px;
  }
}

.right-extend-btn {
  border: 0;
  background: none;
  font-size: 14px;
  color: #171a1d;
  margin: 16px 0 0 16px;
  padding: 0;
  display: flex;
  align-items: center;
  &:hover {
    color: $color-primary-light-6;
  }
  .iconfont {
    margin-right: 4px;
  }
}

.el-button--small:not(.el-button--text) {
  padding: 8px 15px;
  .iconfont {
    font-size: 14px;
  }
}

.el-dropdown-menu .el-dropdown-item {
  @mixin item-hover {
    font-weight: normal;
    &:hover {
      background: $color-primary-light-1;
      color: $color-primary-light-6;
      font-weight: bold;
    }
  }
  .import-item > div {
    @include item-hover;
    .import-item-children > div {
      @include item-hover;
    }
  }
}
.action-button-group,
.common-list-view-header__v2-right {
  padding-right: 12px;
  font-size: 0;
  & > * {
    font-size: 14px;
  }
  & > *:not(:first-child) {
    margin-left: 24px;
  }
  .el-dropdown {
    .el-dropdown-selfdefine {
      color: #595959;
      &:hover {
        color: $color-primary-light-6;
      }
    }
  }
  .el-dropdown-link {
    color: #595959;
  }
}

.el-dialog {
  border-radius: 8px;
  overflow: hidden;
  .el-dialog__header {
    position: relative;
    background-color: $bg-color-l2;
    font-weight: bold;
    padding: 10px 24px;
  }
  .el-dialog__footer {
    border-top: 1px solid $color-border-l2;
    padding: 10px 16px;
  }
}

.el-cascader-node__label {
  max-width: 200px;
}

.is-reverse {
  display: inline-block;
  transform: rotate(180deg) !important;
}

.ui-input-block {
  background-color: #fff;
  background-image: none;
  border-radius: 4px;
  border: 1px solid #e0e1e2;
  cursor: pointer;
  color: #606266;
  display: flex;
  align-items: center;
  font-size: inherit;
  min-height: 32px;
  line-height: 32px;
  outline: none;
  padding: 0 30px 0 10px;
  position: relative;
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  min-width: 100px;

  height: 32px;
  white-space: nowrap;
  overflow: hidden;

  &:hover {
    border-color: $color-primary;
  }
  .el-input__icon {
    position: absolute;
    height: 100%;
    right: 5px;
    top: 0;

    display: flex;
    align-items: center;

    color: #c0c4cc;
    text-align: center;
    transition: all 0.3s;
    transform: rotateZ(180deg);
    pointer-events: none;
    &.is-reverse {
      transform: rotateZ(0deg);
    }
  }
  .placeholder-text {
    color: #b3b7c1;
    font-size: $font-size-base;
    line-height: 20px;
  }
}

.ui-separator {
  margin-right: 5px;
}

.chart-card-box {
  padding: 16px;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 12px;
}

.user-card-triggle{
  cursor: pointer;
  color:$color-primary!important;
  span{
    cursor: pointer;
    color:$color-primary!important;
  }
}

.base-at-textarea{
  width: 100%;
}
.hide-block{
  display: none !important;
}

.bbx-normal-list-box {
  .el-table__empty-block {
    width: 100% !important;
    position: sticky;
    left: 0;
    top: 0;
  }
}

.bbx-normal-pack-up {
  width: 100%;
  margin-bottom: 6px;
  div {
    width: 48px;
    height: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.12);
    border-radius: 0px 0px 3px 3px;
    margin: 0 auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    i {
      font-size: 10px;
      color: #4e4e4e;
    }
  }
  div:hover {
    background: $color-primary-light-1;
    border-radius: 0px 0px 3px 3px;
    border: 1px solid $color-primary-light-2;
    i {
      color: $color-primary-light-5;
    }
  }
}

.bbx-normal-page-content {
  width: 100%;
  height: 100%;
}

@mixin table-footer {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
  z-index: 99;
}
.bbx-normal-table-footer {
  @include table-footer
}

.bbx-normal-table-footer-ab {
  position: absolute;
  bottom: 0;
  z-index: 99;
  width: 100%;
}

.bbx-normal-table-footer-10 {
  @include table-footer;
  bottom: -10px;
}

.bbx-normal-table-footer-12 {
  @include table-footer;
  bottom: -12px;
}

.bbx-normal-table-footer-16 {
  @include table-footer;
  bottom: -16px;
}

.bbx-normal-table-box{
  border: 1px solid $color-border-l2;
}

.el-table--striped .el-table__body tr.el-table__row--striped td{
  background-color: #fff;
}

.need-hide-in-oversize{
  transform:translateX(-1000%);
  position: absolute;
}